package crackerx.game.level;

import crackerx.game.graphics.GameBitMaps;
import crafex.engine.graphics.GraphicTools;
import crafex.engine.level.Level;
import crafex.engine.level.LevelHandler;
import crafex.engine.system.Command;
import crafex.engine.system.Crafex;
import crafex.engine.tools.Button;
import crafex.engine.tools.IntVertex2D;

public class GameSelection extends Level{

	private static final long serialVersionUID = 8222866896378597655L;

	public GameSelection(IntVertex2D bounds, Level currentLevel) {
		super(bounds, currentLevel);
		GUI.clear();
		addToGUI(new Button(GraphicTools.makeTextButtonImage("easy", GameBitMaps.six_letter_button, GameBitMaps.purple_text, new IntVertex2D(6, 6), false), (int) (Crafex.getScreenWidth() * .25),
				(int) (Crafex.getScreenHeight() * .25), new Command(this, "gotoGameEasy")));
	}
	
	public void gotoGameEasy(){
		LevelHandler.setLevel(new Game(1));
	}
}
